-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Features/32 diff #388
Features/32 diff #388
Conversation
diff complete, test implemented running for all
Codecov Report
@@ Coverage Diff @@
## master #388 +/- ##
==========================================
+ Coverage 97.34% 97.38% +0.04%
==========================================
Files 53 53
Lines 10395 10481 +86
==========================================
+ Hits 10119 10207 +88
+ Misses 276 274 -2
Continue to review full report at Codecov.
|
heat/core/arithmetics.py
Outdated
if n < 0: | ||
raise ValueError('diff requires that n be a positive number, got {}'.format(n)) | ||
if not isinstance(axis, int): | ||
raise ValueError('axis must be an integer, is currently {}'.format(type(axis))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be sanitize_axis()
heat/core/tests/test_statistics.py
Outdated
@@ -279,6 +279,7 @@ def test_average(self): | |||
|
|||
# check weighted average over all float elements of split 3d tensor, across split axis | |||
random_volume = ht.array(torch.randn((3, 3, 3), dtype=torch.float64), is_split=1) | |||
# random_volume = ht.random.randn(3, 3, 3, dtype=ht.float64, split=) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove or use
Description
Please include a summary of the change and which issue/s is/are fixed.
Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes: #32
Changes proposed:
Type of change
Please delete options that are not relevant.
Have you handled and tested all split configurations?
yes